<div id="createDialog" class="crudDialog">
    <form class="form-horizontal col-md-12" id="createGroupUserForm" method="post">
        <div class="form-group">
            <label for="user" class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" id="user" name="user" placeholder="要添加的用户名(登录名称）"/>
            </div>
            <div class="help-block col-md-4"></div>
        </div>
        <div class="form-group">
            <label for="groupDesc" class="col-sm-2 control-label">团队权限</label>
            <div class="col-sm-6">
                <select name="role" class="form-control">
                    <th:block th:each="role:${roles}">
                        <option th:value="${role.type}" th:text="${role.desc}"></option>
                    </th:block>
                </select>
                <input type="hidden" name="gid" th:value="${gid}" />
                <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
            </div>
            <div class="help-block col-md-4"></div>
        </div>
        <div class="form-group text-right dialog-buttons">
            <button class="waves-effect waves-button btn btn-info" id="btn-GroupUser-submit">保存</button>
            <a class="waves-effect waves-button" href="javascript:;" data-dismiss="modal" aria-label="Close">取消</a>
        </div>
    </form>
</div>